import urllib.request as ur

proxy_address = ur.urlopen('http://api.ip.data5u.com/dynamic/get.html?order=465ff3e1663984d252af0e2cfd496959&random=1&sep=3').read().decode('utf-8').strip()
print(proxy_address)

# 创建 proxy_handler
proxy_handler = ur.ProxyHandler(
    {
        'http':proxy_address
    }
)

# 新建 opener 对象

proxy_opener = ur.build_opener(proxy_handler)

request = ur.Request(url = 'https://edu.csdn.net/')
response = proxy_opener.open(request).read()